1 using UnityEngine;
2
3 ///
<summary>This component will destroy the GameObject it is attached to (in Start()).</summary>
4 public
class OnStartDelete : MonoBehaviour {
5
6     
// Use this for initialization
7     
void Start () {
8         Component.DestroyObject(
this.gameObject);
9     }
10 }


This component will destroy the GameObject it is attached to (in Start()).

Use this for initialization




Trò chơi Tic-Tac-Toe, game đánh caro full source code 53.449 lượt xem

Gõ tìm kiếm nhanh...